#pragma once
#include "RBTree_t.h"

namespace dwc
{
	template <class K>
	class set
	{
		struct GetKeyOfT
		{
			const K& operator()(const K& val)
			{
				return val;
			}
		};
	public:
		typedef typename RBTree<K, const K, GetKeyOfT>::iterator iterator;

		iterator begin()
		{
			return _t.begin();
		}

		iterator end()
		{
			return _t.end();
		}

		bool Insert(const K& val)
		{
			return _t.Insert(val);
		}
	private:
		RBTree<K, const K, GetKeyOfT> _t;
	};
}